package com.empresa.rhtutorial.controller.jsf.proventodesconto;

import javax.enterprise.inject.Produces;
import javax.inject.Named;


import com.empresa.rhtutorial.controller.jsf.AppMB;
import com.empresa.rhtutorial.entity.proventodesconto.ProventoDescontoEntity;

import com.powerlogic.jcompany.commons.annotation.PlcUriIoC;
import com.powerlogic.jcompany.commons.config.stereotypes.SPlcMB;
import com.powerlogic.jcompany.controller.jsf.annotations.PlcHandleException;
import com.powerlogic.jcompany.controller.jsf.PlcEntityList;
import com.powerlogic.jcompany.config.collaboration.FormPattern;



import com.powerlogic.jcompany.config.aggregation.PlcConfigAggregation;
import com.powerlogic.jcompany.config.collaboration.PlcConfigForm;
import com.powerlogic.jcompany.config.collaboration.PlcConfigTabular;
import com.powerlogic.jcompany.config.collaboration.PlcConfigFormLayout;
import com.powerlogic.jcompany.config.collaboration.FormPattern;
import com.powerlogic.jcompany.config.collaboration.PlcConfigForm.ExclusionMode;
	
@PlcConfigAggregation(entity = com.empresa.rhtutorial.entity.proventodesconto.ProventoDescontoEntity.class)

@PlcConfigForm(
	formPattern=FormPattern.Ctb,
	tabular = @PlcConfigTabular(numNew = 20), 
	formLayout = @PlcConfigFormLayout(dirBase="/WEB-INF/fcls/proventoDesconto"),
	ctbHeaderProperties={"anoMesReferencia","funcionario"}
	)

/**
 * Classe de Controle gerada pelo assistente
 */
@SPlcMB
@PlcUriIoC("proventodesconto")	
@PlcHandleException
public class ProventoDescontoMB extends AppMB  {

	private static final long serialVersionUID = 1L;

	/**
	 * Entidade da ação injetado pela CDI
	*/
	@Produces  @Named("proventodescontoLista") 
	public PlcEntityList createEntityListPlc() {
		if (this.entityListPlc==null) {
			this.entityListPlc = new PlcEntityList();
			this.newObjectList();
		}
		return this.entityListPlc;
	}	
	
	@Produces  @Named("proventodescontoArg") 
	public ProventoDescontoEntity createEntityPlc() {
		if (this.entityPlc==null) {
			this.entityPlc = new ProventoDescontoEntity();
			this.newEntity();
		}
		return (ProventoDescontoEntity) this.entityPlc;
	}	

	
}
